.container{
    display:grid;
    grid-template-rows: repeat(3,1fr);
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    width: 300px;
    height: 300px;
    border: 1px solid;
}

.item{
    border: 1px solid red;
}